From 92d6391152473329e845917817240f1485cf0e84 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 15 Mar 2006 10:32:34 +0100 Subject: [PATCH] Add extra tracing near a commonly-failing scheduler assertion. Signed-off-by: Keir Fraser --- xen/common/sched_sedf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/common/sched_sedf.c b/xen/common/sched_sedf.c index d4e8895514..87f9f6ab00 100644 --- a/xen/common/sched_sedf.c +++ b/xen/common/sched_sedf.c @@ -585,6 +585,10 @@ static void update_queues( curinf->deadl_abs += DIV_UP(now - curinf->deadl_abs, curinf->period) * curinf->period; + if (unlikely(curinf->deadl_abs < now)) + printk("Fatal scheduler error: %lld %lld %lld diff=%lld\n", + curinf->deadl_abs, now, curinf->period, + now - curinf->deadl_abs); ASSERT(curinf->deadl_abs >= now); /*give a fresh slice*/ curinf->cputime = 0; -- 2.30.2